import { Injectable } from '@nestjs/common';
import { CreateMenuDto } from './dto/create-menu.dto';
import { UpdateMenuDto } from './dto/update-menu.dto';

@Injectable()
export class MenuService {
  create(createMenuDto: CreateMenuDto) {
    return 'This action adds a new menu';
  }

  findAll() {
    return [
      {
        name: '首页',
        path: '/home/index',
        component: '/home/index',
        meta: {
          title: '首页',
          isLink: '',
          isHide: false,
          // isFull: false,
          isAffix: true,
          isKeepAlive: true,
          activeMenu: '',
        },
        children: [],
      },
    ];
  }

  findOne(id: number) {
    return `This action returns a #${id} menu`;
  }

  update(id: number, updateMenuDto: UpdateMenuDto) {
    return `This action updates a #${id} menu`;
  }

  remove(id: number) {
    return `This action removes a #${id} menu`;
  }
}
